package com.example.exception;

import com.example.constant.UserExceptionEnum;

import java.util.HashMap;
import java.util.Map;

public class BizException extends RuntimeException {

    private final Map<Integer, String> info = new HashMap<>();

    public BizException(UserExceptionEnum e) {
        info.put(e.getCode(), e.getMessage());
    }

    public Map<Integer, String> getInfo() {
        return info;
    }
}
